package com.qf.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;


/**
   @author KING
   @ClassName: com.qf.entity.ProductImage
   @Description: 该类的功能描述
   @date: 2021/11/6 17:16 
*/
    

/**
    * 商品图片表
    */
@Data
@TableName(value = "product_image")
public class ProductImage {
    @TableId(value = "image_id", type = IdType.ASSIGN_ID)
    private Long imageId;

    /**
     * 图片地址
     */
    @TableField(value = "image_url")
    private String imageUrl;

    /**
     * 外键 对应的商品ID
     */
    @TableField(value = "t_p_id")
    private Long tPId;

    public static final String COL_IMAGE_ID = "image_id";

    public static final String COL_IMAGE_URL = "image_url";

    public static final String COL_T_P_ID = "t_p_id";
}